package com.ayun.service;

import com.ayun.bean.User;
import com.ayun.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    private UserDao userDao;

    public User getUserInfo(String username) {
        return userDao.getByUsername(username);
    }

    public boolean updateUserInfo(User user) {
        return userDao.update(user);
    }

    public boolean insertUserInfo(User user) {
        return userDao.insert(user);
    }
}
